package com.zengqingfa.imp.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zengqingfa.imp.demo.dto.Emp;
import com.zengqingfa.imp.demo.dto.EmpExportDTO;
import com.zengqingfa.imp.demo.dto.EmpQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @fileName: EmpDao
 * @author: zengqf3
 * @date: 2021-3-3 11:26
 * @description:
 */
public interface EmpDao extends BaseMapper<Emp> {

    List<Emp> findAll();

    Emp findById(Integer id);

    Integer findCount();

    List<Emp> findByPage(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize);

    List<EmpExportDTO> list(@Param("param") EmpQueryDTO dto);
}
